package first.niuke.huawei.mediumDifficulty;

import java.util.Scanner;

/**
 * @ClassName HJ14
 * @description:
 * @author: 荣燊
 * @create: 2021-07-07 20:53
 **/
public class HJ14 {
    // 字符串排序
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int n = scanner.nextInt();
            String[] strs = new String[n];
            for (int i=0; i<n; i++) {
                strs[i] = scanner.next();
                // strs[i] = scanner.nextLine();这样就不行，蜜汁操作。。。。
            }
//             Arrays.first.sort(strs);
            for (int j=0; j<n; j++) {
                System.out.println(strs[j]);
            }
        }

    }

}
